﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;

namespace DoveSiButta
{
    public class RifiutoType : INotifyPropertyChanged
    {
        private string _type;
        public string type
        {
            get { return _type; }
            set
            {
                if (value != _type)
                {
                    _type = value;
                    NotifyPropertyChanged("type");
                }
            }
        }

        private string _description;
        public string description
        {
            get { return _description; }
            set
            {

                if (value != _description)
                {
                    _description = value;
                    NotifyPropertyChanged("description");
                }

            }
        }

        private int _code;
        public int code
        {
            get { return _code; }
            set
            {

                if (value != _code)
                {
                    _code = value;
                    NotifyPropertyChanged("code");
                }

            }
        }


        private Uri _icon;
        public Uri icon
        {

            get { return _icon; }
            set
            {

                if (value != _icon)
                {
                    _icon = value;
                    NotifyPropertyChanged("icon");
                }

            }
        }





        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }


    }
}
